From centos
MAINTAINER hbjohnsan <3174689@qq.com>
RUN yum update -y
RUN yum install wget -y
RUN wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
RUN rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
RUN yum install nginx -y


RUN echo "daemon off;">>/etc/nginx/nginx.conf
CMD nginx
EXPOSE 80
EXPOSE 443
